package com.example.bjsfpost.emails;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.support.MultipartFilter;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/email")
public class EmailController {
    @Resource
    private EmailService emailService;

    @PostMapping("/send")
    public BjsfEmailResponseVO sendEmail(EmailRequestDTO req ){
        return  emailService.sendEmail(req,null);
    }
}
